package com.huawei.hotel.dao;

import com.huawei.hotel.vo.User;
import org.apache.ibatis.annotations.Param;


/**
 * @author 18902
 * @date 2020/10/19 22:31
 * @desc 用户Dao层接口
 */
public interface UserDao {
    /**
     * 通过账户和密码查询用户
     */
    public User findUser(@Param("useracount") String useracount, @Param("password") String passwprd);

    /**
     * 用户注册功能
     */
    public int register(User user);

    ////    public int register(User user);
//    public int register(@Param ("useracount")String useracount,@Param ("password")String password,
//                        @Param ("userrole")String userrole,@Param ("userpower")String userpower,
//                        @Param ("username")String username,@Param ("age")String age,@Param ("phone")String phone,
//                        @Param ("address")String address,@Param ("city")String city);
    //修改用户信息
    public int updateUser(User user);

    // 通过id查询客户
    public User getUserById(int id);
}
